package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Tag extends AbstractMethod {
    private static final String name = "tag";
    /**
    Add a static tag to all data points. Tag can be called more then once.
    **/
    /**
    将静态标签添加到所有数据点。标签可以再调用一次。
    **/
    public Tag(String tag, String key) {
        super(new ArrayList<>(), name);
        this.args.add(new SingleQuotesArg(tag));
        this.args.add(new SingleQuotesArg(key));
    }
    public Tag(String tag) {
        super(new ArrayList<>(), name);
        this.args.add(new SingleQuotesArg(tag));
    }
}
